package cn.tedu.gateway.shanghai.controller;

import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.ZonedDateTime;

@RestController
@RequestMapping("/sh")
public class ShangHaiController {
    @RequestMapping("show")
    public String show(@RequestHeader("Request-color") String color){
        System.out.println(ZonedDateTime.now());
        return "上海欢迎你~"+"color:"+color;
    }
}
